<?php

if (!defined('SITE_PATH')) {
    exit();
}

$db_prefix = C('DB_PREFIX');

$sql = array(
    // Blog数据
    "DROP TABLE IF EXISTS `{$db_prefix}team`;",
    "DROP TABLE IF EXISTS `{$db_prefix}team_follow`;",
    "DROP TABLE IF EXISTS `{$db_prefix}team_post`;",
    "DROP TABLE IF EXISTS `{$db_prefix}team_reply`;",
    "DROP TABLE IF EXISTS `{$db_prefix}team_category`;",
    // ts_system_data数据
    //"DELETE FROM `{$db_prefix}system_data` WHERE `list` = 'team'",
    // 积分规则
    "DELETE FROM `{$db_prefix}credit_setting` WHERE `type` = 'team';",
    "DELETE FROM `{$db_prefix}task` WHERE `id` IN (101,102,103,104,105);",
);

foreach ($sql as $v) {
    M('')->execute($v);
}
